package com.cryptoneedle.center.mapping.vo;

import com.cryptoneedle.center.common.enums.MappingFieldType;
import com.cryptoneedle.center.common.key.TableKey;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>description: 标准表配置 </p>
 *
 * @author CryptoNeedle
 * @date 2025-09-26
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString
public class MappingTableConfigVo {

    private TableKey tableKey;

    private Boolean mappingTableFlag;

    private List<ColumnConfig> columnConfigList;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Accessors(chain = true)
    @ToString
    public static class ColumnConfig {

        private Integer mappingSequence;

        private String columnName;

        private MappingFieldType mappingFieldType;
    }
}